﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using ChoViet.Lib.Paging;
using ChoViet.Model;
using System.Web.Mvc;

namespace ChoViet.CMS.ViewModels
{

    #region Site: Shop

    public class ShopIndexViewModel
    {
        public IPagedList<Shop> Shops { get; set; }
        public Dictionary<object, object> CusTypes = new Dictionary<object, object>();
        public List<Demand> Demands { get; set; }
        public List<Area> Areas { get; set; }
        public List<City> Cities { get; set; }
        public List<District> Districts { get; set; }
        public IList<SelectListItem> Categories { get; set; }
        public string Keyword { get; set; }
        public int CusType { get; set; }
        public Demand Demand { get; set; }
        public Area Area { get; set; }
        public City City { get; set; }
        public District District { get; set; }
        public Category Category { get; set; }
        public AdAttribute AdAttribute { get; set; }
        public AdAttributeValue AdAttributeValue { get; set; }
    }
    public class ShopDetailsViewModel
    {
        public Shop Shop { get; set; }
        public List<Ad> Ads { get; set; }
        public Demand Demand { get; set; }
        public AdAttribute AdAttribute { get; set; }
        public AdAttributeValue AdAttributeValue { get; set; }
    }

    #endregion

    #region CMS: Shop
    public class ShopIndexCMSViewModel
    {
        public IPagedList<Shop> Shops { get; set; }
        public List<Area> Areas { get; set; }
        public List<City> Cities { get; set; }
        public List<District> Districts { get; set; }
        public IList<SelectListItem> CategoryBuiltTree { get; set; }
        public Dictionary<object, object> PubStatus = new Dictionary<object, object>();
        public Dictionary<object, object> ForcusStatus = new Dictionary<object, object>();
        public string Keyword { get; set; }
        public int CurentAreaId { get; set; }
        public int CurentCityId { get; set; }
        public int CurentDistrictId { get; set; }
        public int CurentCateId { get; set; }
        public int CurentPubStatusId { get; set; }
        public int CurentForcusId { get; set; }

    }

    public class ShopEditCmsViewModel
    {
        public Shop Shop { get; set; }
        public List<City> Cities { get; set; }
        public List<District> Districts { get; set; }
        public IList<SelectListItem> CategoryBuiltTree { get; set; }
        public List<Demand> Demands { get; set; }
        public List<Ad> Ads { get; set; }
        public Dictionary<object, object> MailStatus = new Dictionary<object, object>();
        public User User { get; set;}
        public List<int> ListAdIDInShop { get; set;}
    }
    public class LoadShopByScrollingViewModel
    {
        public IPagedList<Shop> Shops { get; set; }   
    }
    public class ShopDetailsCmsViewModel
    {
        public Shop Shop { get; set; }
        public List<Ad> Ads { get; set; }
        public User User { get; set; }       
    }
    #endregion

}
